import { BasicColumn } from '/@/components/Table';
import { FormSchema } from '/@/components/Table';
//列表数据
export const columns: BasicColumn[] = [
  // {
  //   title: '卡种id',
  //   align: 'center',
  //   dataIndex: 'cardTypeId',
  //   width: 100,
  //   resizable: true,
  // },
  {
    title: '日期',
    align: 'center',
    dataIndex: 'createTime',
    width: 100,
    resizable: true,
    // slots: { customRender: 'isFormat' },
  },
  {
    title: '卡种名称',
    align: 'center',
    dataIndex: 'cardTypeName',
    width: 100,
    resizable: true,
  },
  {
    title: '入库数量',
    align: 'center',
    dataIndex: 'inNum',
    width: 100,
    resizable: true,
  },
  {
    title: '收购价',
    align: 'center',
    dataIndex: 'inPrice',
    width: 100,
    resizable: true,
  },
  {
    title: '补贴',
    align: 'center',
    dataIndex: 'subsidy',
    width: 100,
    resizable: true,
  },
  {
    title: '上级补贴',
    align: 'center',
    dataIndex: 'managerSubsidy',
    width: 100,
    resizable: true,
  },
  {
    title: '上上级补贴',
    align: 'center',
    dataIndex: 'superiorSubsidy',
    width: 100,
    resizable: true,
  },
  {
    title: '销售数量',
    align: 'center',
    dataIndex: 'sellNum',
    width: 100,
    resizable: true,
  },
  {
    title: '总金额',
    align: 'center',
    dataIndex: 'totalPrice',
    width: 100,
    resizable: true,
  },
];
//查询数据
export const searchFormSchema: FormSchema[] = [
  {
    label: '类型',
    field: 'type',
    component: 'JDictSelectTag',
    componentProps: {
      dictCode: 'diary_type',
    },
  },
  {
    field: 'createTime',
    label: '日期',
    component: 'RangePicker',
    componentProps: {
      valueFormat: 'YYYY-MM-DD',
    },
    // auth: 'demo:order:auth',
  },
];
